{include file="public/header" /}
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">
                <span class="text-info" style="margin-left: 5px">{$setting.side_admin_title}</span>
            </a>
            <span></span>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">


            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a class="refresh-btn" style="cursor: pointer" data-url="{:url('admin/index/clear')}" class="del-btn">清除缓存</a></li>
                <li><a class="refresh-btn" style="cursor: pointer" data-url="{:url('admin/index/logout')}">退出</a></li>

            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<!--<nav class="navbar navbar-default">-->
        <!--<div class="container-fluid">-->
            <!--<div class="navbar-header">-->
                <!--<a class="navbar-brand" href="#" >-->
                    <!--<span><img style="width: 25px;height: 25px" alt="Brand" src="__STATIC__/logo.jpg"></span>-->
                    <!--<span class="text-info" style="margin-left: 5px">{$setting.side_admin_title}</span>-->


                <!--</a>-->
                <!--<ul class="nav navbar-nav navbar-right">-->
                    <!--<li><a data-url="{:url('admin/index/clear')}" class="del-btn">清除缓存</a></li>-->
                    <!--<li><span class="text-info" id="logout" data-url="{:url('admin/index/logout')}">退出</span></li>-->
                <!--</ul>-->
            <!--</div>-->
        <!--</div>-->
    <!--</nav>-->
<div class="container-fluid">
    <div class="row">
        <div class="col-md-2">
            <ul class=" nav nav-pills nav-stacked" id="admin_menu_parent">
                {volist name="admin_menu" id="value" key="num" }
                    <li role="presentation" class="panel active" style="margin-bottom: 5px">
                        <a class="menu-url" data-url="{if !empty($value['url'])}{$value['url']}{/if}" href="#collapse_menu_{$num}" data-isframe="{if !empty($value['url'])}true{else/}false{/if}" data-toggle="collapse" data-parent="#admin_menu_parent">
                            {$key}
                        </a>
                        {if !empty($value['children'])}
                            <ul id="collapse_menu_{$num}" class="nav nav-pills nav-stacked collapse">
                                {foreach $value['children'] as $c_k => $c_value}
                                    <li role="presentation" >
                                        <a class="menu-url" data-url="{$c_value}" >{$c_k}</a>
                                    </li>
                                {/foreach}
                            </ul>
                        {/if}

                    </li>
                {/volist}
            </ul>
        </div>
        <div class="col-md-10" id="layout_content">
            {__CONTENT__}
        </div>
    </div>
</div>


{include file="public/footer" /}